package com.atguigu.srb.core.service;

import com.atguigu.srb.core.entity.TransFlow;
import com.atguigu.srb.core.entity.UserInfo;
import com.atguigu.srb.core.enums.TransTypeEnum;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 交易流水表 服务类
 * </p>
 *
 * @author Atguigu
 * @since 2023-06-30
 */
public interface TransFlowService extends IService<TransFlow> {
    //提取方法,根据交易单号查询获取transFlow
    TransFlow getByTransNo(String agentBillNo);

    //新增交易流水
    void saveTransFlow(BigDecimal amount, UserInfo userInfo, String chargeNo, TransTypeEnum typeEnum, Integer status,String memo);
    //更新交易流水
}
